using System;
using System.Xml.Serialization;

[assembly: CLSCompliant(true)]
namespace BillsDomain
{
    public class ScheduledPayment
    {
        public DateTime FirstDate { get; set; }
        public string Payee { get; set; }
        public decimal Amount { get; set; }
        public Recurrence PaymentRecurrence { get; set; }
        public int Id { get; set; }
        public PaymentType PaymentType { get; set; }
        public bool IncludeInProjection { get; set; }
        [XmlIgnore]
        public bool IsDebit
        {
            get
            {
                return this.PaymentType == PaymentType.Debit;
            }
        }
    }
}
